package se.webbzon.boltzmann.object.geometry;

import se.webbzon.oschi01.worldobject.appearance.Appearance3DException;

public class GeometryDeflation extends MaskedGeometryDeflation {
	
	/*============================================================
	Constructors
	============================================================*/
	
	public GeometryDeflation(int deflationProperties) {
		super(deflationProperties);
	}
	
	public GeometryDeflation(int deflationProperties, Geometry g) {
		super(deflationProperties,g);
	}
	
	/*============================================================
	Public Methods
	============================================================*/
	
	/** Creates a new geometry from the data of this serializable geometry. **/
	public Geometry makeGeometry() throws Appearance3DException {
		Geometry g = new Geometry(	makeGeometryAppearance(),isVisible(),
									makeGeometryMask(),isSolid());
		g.setPosition(getX(),getY(),getZ());
		g.setSize(getWidth(), getHeight(), getDepth());
		g.setRotation(getEX(), getEY(), getEZ(), getAngle());
		return g;
	}

}
